package com.retailshop.shopuser.service;

import com.retailshop.shopuser.entity.OwnerShareUser;
import com.retailshop.shopuser.entity.OwnerUser;
import com.retailshop.shopuser.entity.UserNo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOwnerService {

    OwnerUser selectByPrimaryKey(Integer id);

    List<OwnerUser> getList(@Param("id")Integer id,@Param("no")String no,@Param("name")String name,@Param("phone")String phone,@Param("rankServiceId")Integer rankServiceId,@Param("rankShopId")Integer rankShopId);

    List<OwnerUser> getList1(@Param("id")Integer id,@Param("no")String no,@Param("name")String name,@Param("phone")String phone);

    List<OwnerShareUser> getOwnerList(@Param("id")int id, @Param("rankId")int rankId, @Param("rankShopId")int rankShopId);


    boolean settlementRealpay();

    boolean lowerOwner();

    boolean clearUserShopShare();

    boolean InternshipLowerOwner(OwnerUser ownerUser);
    boolean OwnerLowerOwner(OwnerUser ownerUser,int rankId);

    boolean checkOwner();

    boolean checkOwnerInternship(@Param("id")Integer id);

    boolean checkOwnerInternshipAll();

    boolean checkStar();

    boolean checkActivation();

}
